CXX_FLAGS=`pkg-config --cflags playerc++` `pkg-config --cflags ompl`
INCLUDE_FLAGS=-I/usr/include
LD_FLAGS=`pkg-config --libs playerc++` `pkg-config --libs ompl` -lboost_random-mt -lboost_serialization-mt -lboost_system-mt
CXX=g++
PROGRAM=example0
OBJS=example0.o PlayerObject.o PlayerObjectManager.o Person.o

$(PROGRAM): $(OBJS)
	$(CXX) $(CXX_FLAGS) -o $(PROGRAM) $(OBJS) $(LD_FLAGS)

clean:
	rm -f *.o $(PROGRAM)

example0.o: example0.cc
	$(CXX) -c example0.cc $(CXX_FLAGS) $(INCLUDE_FLAGS)
	
PlayerObject.o: PlayerObject.cpp
	$(CXX) -c PlayerObject.cpp $(CXX_FLAGS) $(INCLUDE_FLAGS)

PlayerObjectManager.o: PlayerObjectManager.cpp
	$(CXX) -c PlayerObjectManager.cpp $(CXX_FLAGS) $(INCLUDE_FLAGS)
	
Person.o: Person.cpp
	$(CXX) -c Person.cpp $(CXX_FLAGS) $(INCLUDE_FLAGS)
